import { PageResult } from '@/api/model/pageResult';
import { defHttp } from '@/utils/http/axios';
import { QueryMemberAccountLogVo } from '@/api/base-data/member-account-log/model/queryMemberAccountLogVo';
import { QueryMemberAccountLogBo } from '@/api/base-data/member-account-log/model/queryMemberAccountLogBo';

const baseUrl = '/basedata/member-account-log';
const region = 'cloud-api';

/**
 * 查询列表
 */
export function query(
  params: QueryMemberAccountLogVo,
): Promise<PageResult<QueryMemberAccountLogBo>> {
  return defHttp.get<PageResult<QueryMemberAccountLogBo>>(
    {
      url: baseUrl + '/query',
      params,
    },
    {
      region,
    },
  );
}
